package com.example.some;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class SomeApplication {

  @Value("${my.message}")
  private String message;

  public static void main(String[] args) {
    SpringApplication.run(SomeApplication.class, args);
  }

  @RequestMapping(value = "/getsome")
  public String message(){
    return  "some服务模块消息";
  }
}
